import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/application/AbilityDelegator.d.ts',
  content: "/*\n * Copyright (c) 2021-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit AbilityKit\n */\nimport { AsyncCallback } from '../@ohos.base';\nimport UIAbility from '../@ohos.app.ability.UIAbility';\nimport AbilityStage from '../@ohos.app.ability.AbilityStage';\nimport { AbilityMonitor } from './AbilityMonitor';\nimport { AbilityStageMonitor } from './AbilityStageMonitor';\nimport Context from './Context';\nimport Want from '../@ohos.app.ability.Want';\nimport { ShellCmdResult } from './shellCmdResult';\n/**\n * A global test utility interface used for adding AbilityMonitor objects and control lifecycle states of abilities.\n *\n * @interface AbilityDelegator\n * @syscap SystemCapability.Ability.AbilityRuntime.Core\n * @since 9\n */\n/**\n * A global test utility interface used for adding AbilityMonitor objects and control lifecycle states of abilities.\n *\n * @interface AbilityDelegator\n * @syscap SystemCapability.Ability.AbilityRuntime.Core\n * @crossplatform\n * @since 10\n */\n/**\n * A global test utility interface used for adding AbilityMonitor objects and control lifecycle states of abilities.\n *\n * @interface AbilityDelegator\n * @syscap SystemCapability.Ability.AbilityRuntime.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\nexport interface AbilityDelegator {\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object\n     * @param { AsyncCallback<void> } callback - The callback of addAbilityMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object\n     * @param { AsyncCallback<void> } callback - The callback of addAbilityMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object\n     * @param { AsyncCallback<void> } callback - The callback of addAbilityMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling AddAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback<void>): void;\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling AddAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    addAbilityMonitor(monitor: AbilityMonitor): Promise<void>;\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Add an AbilityMonitor object for monitoring the lifecycle state changes of the specified ability in this process.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling AddAbilityMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    addAbilityMonitorSync(monitor: AbilityMonitor): void;\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of addAbilityStageMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of addAbilityStageMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of addAbilityStageMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling AddAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    addAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback<void>): void;\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling AddAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise<void>;\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - AddAbilityStageMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Add an AbilityStageMonitor object for monitoring the lifecycle state changes of the specified abilityStage in this process.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling AddAbilityStageMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    addAbilityStageMonitorSync(monitor: AbilityStageMonitor): void;\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of removeAbilityMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of removeAbilityMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of removeAbilityMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling RemoveAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback<void>): void;\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling RemoveAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    removeAbilityMonitor(monitor: AbilityMonitor): Promise<void>;\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Remove a specified AbilityMonitor object from the application memory.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling RemoveAbilityMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    removeAbilityMonitorSync(monitor: AbilityMonitor): void;\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of removeAbilityStageMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of removeAbilityStageMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<void> } callback - The callback of removeAbilityStageMonitor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling RemoveAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    removeAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback<void>): void;\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling RemoveAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise<void>;\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - RemoveAbilityStageMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Remove a specified AbilityStageMonitor object from the application memory.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling RemoveAbilityStageMonitorSync failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    removeAbilityStageMonitorSync(monitor: AbilityStageMonitor): void;\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback<UIAbility>): void;\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { number } timeout - Maximum wait time, in milliseconds.\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { number } timeout - Maximum wait time, in milliseconds.\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { number } timeout - Maximum wait time, in milliseconds.\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback<UIAbility>): void;\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { number } [timeout] - Maximum wait time, in milliseconds.\n     * @returns { Promise<UIAbility> } Returns the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { number } [timeout] - Maximum wait time, in milliseconds.\n     * @returns { Promise<UIAbility> } Returns the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor.\n     *\n     * @param { AbilityMonitor } monitor - AbilityMonitor object.\n     * @param { number } [timeout] - Maximum wait time, in milliseconds.\n     * @returns { Promise<UIAbility> } Returns the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling WaitAbilityMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise<UIAbility>;\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<AbilityStage> } callback - The callback is used to return the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<AbilityStage> } callback - The callback is used to return the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { AsyncCallback<AbilityStage> } callback - The callback is used to return the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    waitAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback<AbilityStage>): void;\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { number } timeout - Maximum wait time, in milliseconds.\n     * @param { AsyncCallback<AbilityStage> } callback - The callback is used to return the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { number } timeout - Maximum wait time, in milliseconds.\n     * @param { AsyncCallback<AbilityStage> } callback - The callback is used to return the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { number } timeout - Maximum wait time, in milliseconds.\n     * @param { AsyncCallback<AbilityStage> } callback - The callback is used to return the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback<AbilityStage>): void;\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { number } [timeout] - Maximum wait time, in milliseconds.\n     * @returns { Promise<AbilityStage> } Returns the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { number } [timeout] - Maximum wait time, in milliseconds.\n     * @returns { Promise<AbilityStage> } Returns the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor.\n     *\n     * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object.\n     * @param { number } [timeout] - Maximum wait time, in milliseconds.\n     * @returns { Promise<AbilityStage> } Returns the AbilityStage object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling WaitAbilityStageMonitor failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise<AbilityStage>;\n    /**\n     * Obtain the application context.\n     *\n     * @returns { Context } Returns the app Context.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Obtain the application context.\n     *\n     * @returns { Context } Returns the app Context.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtain the application context.\n     *\n     * @returns { Context } Returns the app Context.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getAppContext(): Context;\n    /**\n     * Obtain the lifecycle state of a specified ability.\n     *\n     * @param { UIAbility } ability - The Ability object.\n     * @returns { number } Returns the state of the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Obtain the lifecycle state of a specified ability.\n     *\n     * @param { UIAbility } ability - The Ability object.\n     * @returns { number } Returns the state of the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtain the lifecycle state of a specified ability.\n     *\n     * @param { UIAbility } ability - The Ability object.\n     * @returns { number } Returns the state of the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getAbilityState(ability: UIAbility): number;\n    /**\n     * Obtain the ability that is currently being displayed in this process.\n     *\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - GetCurrentTopAbility failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Obtain the ability that is currently being displayed in this process.\n     *\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - GetCurrentTopAbility failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtain the ability that is currently being displayed in this process.\n     *\n     * @param { AsyncCallback<UIAbility> } callback - The callback is used to return the Ability object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling GetCurrentTopAbility failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getCurrentTopAbility(callback: AsyncCallback<UIAbility>): void;\n    /**\n     * Obtain the ability that is currently being displayed in this process.\n     *\n     * @returns { Promise<UIAbility> } Returns the Ability object.\n     * @throws { BusinessError } 16000100 - GetCurrentTopAbility failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Obtain the ability that is currently being displayed in this process.\n     *\n     * @returns { Promise<UIAbility> } Returns the Ability object.\n     * @throws { BusinessError } 16000100 - GetCurrentTopAbility failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtain the ability that is currently being displayed in this process.\n     *\n     * @returns { Promise<UIAbility> } Returns the Ability object.\n     * @throws { BusinessError } 16000100 - Calling GetCurrentTopAbility failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getCurrentTopAbility(): Promise<UIAbility>;\n    /**\n     * Start a new ability.\n     *\n     * @param { Want } want - Indicates the ability to start\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Start a new ability.\n     *\n     * @param { Want } want - Indicates the ability to start\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Start a new ability.\n     *\n     * @param { Want } want - Indicates the ability to start\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    startAbility(want: Want, callback: AsyncCallback<void>): void;\n    /**\n     * Start a new ability.\n     *\n     * @param { Want } want - Indicates the ability to start\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Start a new ability.\n     *\n     * @param { Want } want - Indicates the ability to start\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Start a new ability.\n     *\n     * @param { Want } want - Indicates the ability to start\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    startAbility(want: Want): Promise<void>;\n    /**\n     * Invoke the Ability.onForeground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @param { AsyncCallback<void> } callback - The callback of doAbilityForeground.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityForeground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Invoke the Ability.onForeground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @param { AsyncCallback<void> } callback - The callback of doAbilityForeground.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityForeground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Invoke the Ability.onForeground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @param { AsyncCallback<void> } callback - The callback of doAbilityForeground.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling DoAbilityForeground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    doAbilityForeground(ability: UIAbility, callback: AsyncCallback<void>): void;\n    /**\n     * Invoke the Ability.onForeground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityForeground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Invoke the Ability.onForeground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityForeground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Invoke the Ability.onForeground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling DoAbilityForeground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    doAbilityForeground(ability: UIAbility): Promise<void>;\n    /**\n     * Invoke the Ability.onBackground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @param { AsyncCallback<void> } callback - The callback of doAbilityBackground.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityBackground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Invoke the Ability.onBackground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @param { AsyncCallback<void> } callback - The callback of doAbilityBackground.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityBackground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Invoke the Ability.onBackground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @param { AsyncCallback<void> } callback - The callback of doAbilityBackground.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling DoAbilityBackground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    doAbilityBackground(ability: UIAbility, callback: AsyncCallback<void>): void;\n    /**\n     * Invoke the Ability.onBackground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityBackground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Invoke the Ability.onBackground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - DoAbilityBackground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Invoke the Ability.onBackground() callback of a specified ability without changing its lifecycle state.\n     *\n     * @param { UIAbility } ability - The ability object.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling DoAbilityBackground failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    doAbilityBackground(ability: UIAbility): Promise<void>;\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information\n     * @param { AsyncCallback<void> } callback - The callback of print.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 8\n     */\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information\n     * @param { AsyncCallback<void> } callback - The callback of print.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information\n     * @param { AsyncCallback<void> } callback - The callback of print.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    print(msg: string, callback: AsyncCallback<void>): void;\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information\n     * @returns { Promise<void> } the promise returned by the function.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 8\n     */\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information\n     * @returns { Promise<void> } the promise returned by the function.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information\n     * @returns { Promise<void> } the promise returned by the function.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    print(msg: string): Promise<void>;\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Prints log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    printSync(msg: string): void;\n    /**\n     * Execute the given command in the aa tools side.\n     *\n     * @param { string } cmd - Shell command\n     * @param { AsyncCallback<ShellCmdResult> } callback - The callback of executeShellCommand.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 8\n     */\n    /**\n     * Execute the given command in the aa tools side.\n     *\n     * @param { string } cmd - Shell command\n     * @param { AsyncCallback<ShellCmdResult> } callback - The callback of executeShellCommand.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @atomicservice\n     * @since 11\n     */\n    executeShellCommand(cmd: string, callback: AsyncCallback<ShellCmdResult>): void;\n    /**\n     * Execute the given command in the aa tools side.\n     *\n     * @param { string } cmd - Shell command\n     * @param { number } timeoutSecs - Timeout, in seconds\n     * @param { AsyncCallback<ShellCmdResult> } callback - The callback of executeShellCommand.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 8\n     */\n    /**\n     * Execute the given command in the aa tools side.\n     *\n     * @param { string } cmd - Shell command\n     * @param { number } timeoutSecs - Timeout, in seconds\n     * @param { AsyncCallback<ShellCmdResult> } callback - The callback of executeShellCommand.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @atomicservice\n     * @since 11\n     */\n    executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback<ShellCmdResult>): void;\n    /**\n     * Execute the given command in the aa tools side.\n     *\n     * @param { string } cmd - Shell command\n     * @param { number } [timeoutSecs] - Timeout, in seconds\n     * @returns { Promise<ShellCmdResult> } the promise returned by the function.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 8\n     */\n    /**\n     * Execute the given command in the aa tools side.\n     *\n     * @param { string } cmd - Shell command\n     * @param { number } [timeoutSecs] - Timeout, in seconds\n     * @returns { Promise<ShellCmdResult> } the promise returned by the function.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @atomicservice\n     * @since 11\n     */\n    executeShellCommand(cmd: string, timeoutSecs?: number): Promise<ShellCmdResult>;\n    /**\n     * Finish the test and print log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @param { number } code - Result code.\n     * @param { AsyncCallback<void> } callback - The callback of finishTest.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - FinishTest failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Finish the test and print log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @param { number } code - Result code.\n     * @param { AsyncCallback<void> } callback - The callback of finishTest.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - FinishTest failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Finish the test and print log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @param { number } code - Result code.\n     * @param { AsyncCallback<void> } callback - The callback of finishTest.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling FinishTest failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    finishTest(msg: string, code: number, callback: AsyncCallback<void>): void;\n    /**\n     * Finish the test and print log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @param { number } code - Result code.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - FinishTest failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @since 9\n     */\n    /**\n     * Finish the test and print log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @param { number } code - Result code.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - FinishTest failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Finish the test and print log information to the unit testing console.\n     * The total length of the log information to be printed cannot exceed 1000 characters.\n     *\n     * @param { string } msg - Log information.\n     * @param { number } code - Result code.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000100 - Calling FinishTest failed.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    finishTest(msg: string, code: number): Promise<void>;\n    /**\n     * Used to set a list of mock data.\n     * @param { Record<string, string> } mockList - An object with string keys and string values. The keys represent the\n     *                                              target path to be replaced and the values represent the path of the\n     *                                              mock implementation to be used for the replacement.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @atomicservice\n     * @since 11\n     */\n    setMockList(mockList: Record<string, string>): void;\n}\nexport default AbilityDelegator;\n",
}
export default FILE;